package demo3;

interface IShape{

    int size = 10; //默认是 public static final
    void draw(); //默认是 public abstract

    default public void func(){
        System.out.println("默认方法！");
    }

    public static void func2(){
        System.out.println("saaaa");
    }
}

class A implements IShape{
    @Override
    public void draw() {
        System.out.println("必须重写接口的构造方法，普通的方法是可选择的");
    }
}
public class Test {
}
